<?php

namespace App\Http\Requests;

use App\Rules\ContentXss;

class ReplyRequest extends Request
{
    public function rules()
    {
        return [
            'content' => ['required', 'min:2', new ContentXss]
        ];
    }

    public function messages()
    {
        return [
            'content.required' => '内容不能为空~',
            'content.min'      => '内容必须至少两个字符~'
        ];
    }
}
